<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>padding</title>
        <style>
            .a{
                height: 80px;
                width: 80px;
                background-color: greenyellow;
                border: 5px solid yellow;
                padding:auto;

            }
            .b{
                height: 90px;
                width: 90px;
                background: #ffaaea;
                border: 1px dashed white;
                padding:  35px;
            }
            .c{
                height: 162px;
                width: 162px;
                background: #ffaaea;
                border: 1px dotted white;
                padding:1px;
            }
            .d{
                height: 164px;
                width: 164px;
                background: #ffaaea;
                border: 1px solid white;
                padding: 40px;
            }
            .e{
                height: 246px;
                width: 246px;
                background: white;
                border: 5px solid #a7fff8;
                padding:20px;
            }
            .f{
                height: 296px;
                width: 296px;
                background: white;
                border: 1px dashed black;
                padding:26px;
            }

        </style>
    </head>
    <body>
    <div class="f">
        <div class="e">
            <div class="d">
                <div class="c">
                    <div class="b">
                        <div class="a"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </body>
</html>